import http from "@/server/http";

//讲座列表
export const trainingList = (params) => {
    return http({
        url: "/user/training/list/index",
        method: "POST",
        data: params,
    })
}

//讲座详情
export const trainingListInfo = (params) => {
    return http({
        url: "/user/training/list/info",
        method: "POST",
        data: params,
    })
}

//报名
export const trainingSignUp = (params) => {
    return http({
        url: "/user/training/list/sign_up",
        method: "POST",
        data: params,
    })
}

//参与记录
export const trainingLog = (params) => {
    return http({
        url: "/user/training/log/index",
        method: "POST",
        data: params,
    })
}


//参与记录详情
export const trainingLogInfo = (params) => {
    return http({
        url: "/user/training/log/info",
        method: "POST",
        data: params,
    })
}

//心得反馈 
export const feedbackInfo = (params) => {
    return http({
        url: "/user/training/log/update",
        method: "POST",
        data: params,
    })
}

//讲师类型选择器 
export const lecturerTypeSelector = (params) => {
    return http({
        url: "/admin/training/release/type_selector",
        method: "POST",
        data: params,
    })
}

//讲师选择器 
export const lecturerSelector = (params) => {
    return http({
        url: "/admin/training/release/lecturer_selector",
        method: "POST",
        data: params,
    })
}

//申请请假 
export const lectureApplyLeave = (params) => {
    return http({
        url: "/user/training/log/ask_for_leave",
        method: "POST",
        data: params,
    })
}

//提交培训讲座答案 
export const subTrainingLectureResult = (params) => {
    return http({
        url: "/user/training/list/submit_task_evaluation_results",
        method: "POST",
        data: params,
    })
}

//查看测评结果 
export const queryTrainingLectureResult = (params) => {
    return http({
        url: "/user/training/list/result_info2",
        method: "POST",
        data: params,
    })
}